﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Object One/Admin.Master" AutoEventWireup="true" CodeBehind="FeePolicy.aspx.cs" Inherits="ProjectHK3.Object_One.FeePolicy" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="text-align: center">
        <table style="width:65%;" align="center">
            <tr>
                <td style="text-align: center; height: 41px;" colspan="3">
                <asp:Label ID="Label9" runat="server" Font-Bold="True" Font-Size="45pt" ForeColor="#FF6600" Text="๖ۣۜDelivery ๖ۣۜFee ๖ۣۜPolicies ๖ۣۜManagement"></asp:Label></td>
            </tr>
            <tr>
                <td style="text-align: left; width: 124px">
                    &nbsp;</td>
                <td style="text-align: left; width: 242px">
                    &nbsp;</td>
                <td style="text-align: left">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="text-align: right; width: 124px">
                    <asp:Label ID="Label2" runat="server" Text="About KM :"></asp:Label>
                </td>
                <td style="text-align: left; width: 242px">
                    <asp:TextBox ID="TextBox1" runat="server" Width="210px"></asp:TextBox>
                </td>
                <td style="text-align: left">
                    <asp:Label ID="Label3" runat="server" Text="[KM]"></asp:Label>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="Not Blank!" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="text-align: right; width: 124px">
                    <asp:Label ID="Label4" runat="server" Text="About KG :"></asp:Label>
                </td>
                <td style="width: 242px; text-align: left">
                    <asp:TextBox ID="TextBox2" runat="server" Width="210px"></asp:TextBox>
                </td>
                <td style="text-align: left">
                    <asp:Label ID="Label5" runat="server" Text="[KG]"></asp:Label>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2" ErrorMessage="Not Blank!" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="text-align: right; width: 124px">
                    <asp:Label ID="Label6" runat="server" Text="Service Type:"></asp:Label>
                </td>
                <td style="width: 242px; text-align: left">
                    <asp:DropDownList ID="DropDownList1" runat="server" Width="210px" BackColor="White">
                    </asp:DropDownList>
                </td>
                <td style="text-align: left">
                    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Object One/images/1389547665_search.png" OnClick="ImageButton1_Click" />
                </td>
            </tr>
        </table>

        <br />
        <table style="width:65%;" align="left">
            <tr>
                <td style="text-align: left; width: 345px">
                    <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="#FF6600" NavigateUrl="~/Object One/CreateFeePolicy.aspx"> Create New Delivery Fee Policy </asp:HyperLink>
                </td>
                <td style="text-align: right">
                    <asp:Label ID="Label7" runat="server" ForeColor="Blue" Text="Total :"></asp:Label>
                    <asp:Label ID="Label8" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"  PageSize="15">
                        <Columns>
                            <asp:BoundField DataField="SERVICE_ID" HeaderText="SERVICE" />
                            <asp:BoundField DataField="DISTANCE_FROM" HeaderText="FROM (Km)" />
                            <asp:BoundField DataField="DISTANCE_TO" HeaderText="TO (Km)" />
                            <asp:BoundField DataField="FEE_PER_KM" HeaderText="FEE / KM ($)" />
                            <asp:BoundField DataField="WEIGHT_FROM" HeaderText="WEIGHT FROM (Kg)" />
                            <asp:BoundField DataField="WEIGHT_TO" HeaderText="WEIGHT TO (Kg)" />
                            <asp:BoundField DataField="FEE_PER_KG" HeaderText="FEE / KG ($)" />
                            <asp:TemplateField HeaderText="ACTION">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:LinkButton ID="_lbtRemove" runat="server" CommandArgument='<%# Eval("FEE_POLICY_ID") %>' OnClientClick="return confirm('Are you sure you want to delete this record ?')" OnCommand="_lbtRemove_Command" ToolTip="Remove Fee Policy">Remove</asp:LinkButton>
                                    &nbsp;
                                    <asp:LinkButton ID="_lbtDetails" runat="server" CommandArgument='<%# Eval("FEE_POLICY_ID") %>' OnCommand="_lbtDetails_Command" ToolTip="View details Fee Policy" PostBackUrl="~/Object One/FeePolicyDetail.aspx">Details</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
        </table>

    </div>
</asp:Content>
